<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>平台管理-码表管理</title>
<link href="${path}/css/style.css" rel="stylesheet" type="text/css">
<link href="${path}/common/plugins/bootstrap/css/bootstrap.css"
	rel="stylesheet" type="text/css">
<link href="${path}/common/plugins/zTree/css/zTreeStyle/zTreeStyle.css"
	rel="stylesheet" type="text/css">
<script src="${path}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${path}/js/user_js.js"></script>
<script src="${path}/js/common.js" type="text/javascript"></script>
<script src="${path}/common/plugins/zTree/jquery.ztree.all-3.5.min.js"></script>
<script src="${path}/common/plugins/handlebars.js"
	type="text/javascript"></script>
<script src="${path}/common/plugins/bootstrap/js/bootstrap.js"></script>
<script src="${path}/common/plugins/layer/layer.js"></script>
<script src="lookupCodeType_management.js"></script>
<style>
html, body {
	margin: 0;
	padding: 0;
}

body {
	background: #f1f1f1;
	height: 100%;
}

#idtenTh {
	width: 130px;
}

#emailTh {
	width: 170px;
}

.ztree li span {
	float: left;
}
</style>
</head>
<body>
	<div class="content">
		<div class="content_details">
			<div class="content_l span2">
				<div class="control-title">
					<i class="user_manage content_current"></i><span>码表类型</span>
					<div class="spanbtn">
						<button class="press_btn1 add_btn">
							<i class="add top_current"></i>添加
						</button>
					</div>
				</div>
				<div class="well" style="clear: both">
					<!--树div-->
					<ul id="treeWay" class="ztree"></ul>
				</div>
			</div>
			<div class="content_condition oneContent">
				<div class="last_group">
				 
					<div class="spanbtn" style="float:right">
						<button class="press_btn1 add_code_btn">
							<i class="add top_current"></i>添加
						</button>
						<button class="press_btn2 del_code_btn">
							<i class="del top_current"></i>删除
						</button>
					</div>
				</div>
				<div class="content_table">
					<table name="checkTable" 
						class="table table-striped table-bordered table-hover table-ellipsis details">
						<thead>
							<tr>
								<th class="checkwidth"><input type="checkbox"
										class="checkAll" title="全选" autocomplete="off" /></th>
								<th>ID</th>
								<th>码表类型</th>
								<th>名称</th>
								<th>值</th>
								<th>说明</th>
								<th class="operation">操作</th>
							</tr>
						</thead>
						<tbody id="pageTable">
							<c:forEach items="${data.pageList}" var="item">
								<tr codeid="${item.lookupCode}">
									<td>${item.lookupCode}</td>
									<td>${item.lookupType}</td>
									<td>${item.cdeName}</td>
									<td>${item.cdeValue}</td>
									<td>${item.remark}</td>
									<td><i class="Edit content_current edit_btn" title="编辑"></i><i
										class="Del content_current delete_btn" title="删除"></i></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
					<!-- 引入-->
					<%@ include file="/common/jsp/footer_pager.jsp"%>
				</div>
			</div>
		</div>
	</div>
	</div>
	</div>
</body>
</html>
<!--Handlebars.js模版-->
<!--Handlebars.js模版放在script标签中，保留了html原有层次结构,模版中要写一些操作语句-->
<!--id可以用来唯一确定一个模版,type是模版固定的写法-->
<script id="lookupType-template" type="text/x-handlebars-template">
<body>
    <div class="content_condition oneContent">
        <div class="content_group">
            <div class="span4">
                <label class="control-label">码表类型:</label>
                <div class="controls">
                    <input id="lookupType" type="text" value="{{name}}" title="" />
                    <span class="redbtn">*</span>
                </div>
            </div>
        </div>
        <div class="last_group">
            <div class="span4">
                <label class="control-label">码表类型描述:</label>
                <div class="controls">
                    <input id="lookupDesc" type="text" value="{{desc}}" title="" />
                    <span class="redbtn">*</span>
                </div>
            </div>
        </div>

    </div>
 </body>
    <div class="btn_bottom">
        <div class="spanbtn">
            <label id="tipMsg" style="color: red;"></label>
            <button id="saveBtn" class="press_btn1 Save"><i class="save top_current"></i>保存</button>
            <button class="press_btn2 resetBtn"><i class="reset top_current"></i>重置</button>
            <%--<button class="press_btn3 Close" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name));"><i class="del top_current"></i>关闭</button>--%>
            <button class="press_btn3 Close" onclick="layer.closeAll()"><i class="del top_current"></i>关闭</button>
        </div>
    </div>
</script>